package com.quyou.funtour.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quyou.funtour.po.ActivityPo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ActivityDao extends BaseMapper<ActivityPo> {

    /**
     * 根据用户id获取用户预约的活动
     * @param uid
     * @return
     */
    List<ActivityPo> getYuYueActivityByUid(String uid);

    List<ActivityPo> getParticipateActivity(String uid);

    /**
     * 根据活动id获取活动的图片
     * @param id
     * @return
     */
    List<String> getActivityImgById(String id);

}
